Fight_Detection_Pip_Package_Test.ipynb

!pip install Fight-Detection
!pip install pytube
!pip install git+https://github.com/giuliano-oliveira/gdown_folder.git
import gdown
from moviepy.editor import *
from fight_detection import Fight_utils
# Download Test Videos
gdown.download_folder('https://drive.google.com/drive/u/1/folders/1-13yTD5sw3KmsgdAYjYdOTeOymZ_fpCN', quiet=True)
['/content/TestVideos/InputVideo1.mp4',
 '/content/TestVideos/InputVideo2.mp4',
 '/content/TestVideos/InputVideo3.mp4',
 '/content/TestVideos/InputVideo4.mp4']
Fight_utils.fightDetection("/content/TestVideos/InputVideo1.mp4",16,2,"/content/OUTPUTVideo1.mp4",False)
'/content/OUTPUTVideo1.mp4'
VideoFileClip("/content/OUTPUTVideo1.mp4", audio=False, target_resolution=(300,None)).ipython_display()
100%|██████████| 130/130 [00:00<00:00, 174.19it/s]
Fight_utils.fightDetection("/content/TestVideos/InputVideo2.mp4",16,2,"/content/OUTPUTVideo2.mp4",False)
'/content/OUTPUTVideo2.mp4'
VideoFileClip("/content/OUTPUTVideo2.mp4", audio=False, target_resolution=(300,None)).ipython_display()
100%|██████████| 130/130 [00:00<00:00, 166.33it/s]
Fight_utils.fightDetection("/content/TestVideos/InputVideo3.mp4",16,2,"/content/OUTPUTVideo3.mp4",False)
'/content/OUTPUTVideo3.mp4'
Fight_utils.fightDetection("/content/TestVideos/InputVideo4.mp4",16,2,"/content/OUTPUTVideo4.mp4",False)
'/content/OUTPUTVideo4.mp4'
VideoFileClip("/content/OUTPUTVideo4.mp4", audio=False, target_resolution=(300,None)).ipython_display()
100%|██████████| 752/752 [00:06<00:00, 121.01it/s]